home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / ttyresize.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-31  |  1.6 KB  |  61 lines

  1. /*  SVGATextMode -- An SVGA textmode manipulation/enhancement tool
  2.  *
  3.  *  Copyright (C) 1995,1996  Koen Gadeyne
  4.  *
  5.  *  This program is free software; you can redistribute it and/or modify
  6.  *  it under the terms of the GNU General Public License as published by
  7.  *  the Free Software Foundation; either version 2 of the License, or
  8.  *  (at your option) any later version.
  9.  *
  10.  *  This program is distributed in the hope that it will be useful,
  11.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *  GNU General Public License for more details.
  14.  *
  15.  *  You should have received a copy of the GNU General Public License
  16.  *  along with this program; if not, write to the Free Software
  17.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20. /***
  21.  *** tty resizing code for SVGATextMode.
  22.  ***/
  23.  
  24. #ifndef _TTYRESIZE_H
  25. #define TTYRESIZE_H
  26.  
  27. #ifndef DOS
  28. #  include <sys/types.h>
  29.  
  30. #  include <linux/vt.h> 
  31.  
  32.    int opentty(char *devname);
  33.  
  34. #  ifndef NO_RESIZE
  35.  
  36.      extern struct utsname my_utsname;
  37.      extern int kversion, kv_ver, kv_rel, kv_pl;
  38.  
  39.      int check_kernel_version(int req_ver, int req_rel, int req_pl, char* reason);
  40.  
  41.      int do_VT_RESIZE(int cols, int rows, int resize1x1);
  42.  
  43.      int do_VT_RESIZEX(int cols, int rows, int vlin, int clin, int vcol, int ccol, int allow1x1);
  44.  
  45.      void resize_specified_vts(int cols, int rows);
  46.  
  47.      void resize_active_vts(int cols, int rows);
  48.  
  49. #  endif
  50.  
  51. #else
  52.    int resize_DOS(int cols, int rows);
  53. #endif
  54.  
  55.  
  56. int check_if_resize(int cols, int rows);
  57.  
  58. #endif
  59.  
  60.  
  61.